﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp4
{
    class Example
    {
        public int Add(int a, int b)
        {
            return a + b;
        }
        public void Print()
        {
            Add(5, 5);
        }

        public bool Judge(ref int num)
        {
            if(num % 3 == 0)
            {
                Console.WriteLine(num);
                return true;
            }
            Console.WriteLine(num);
            return false;
        }

        public void JudgeSomething(int num1, out bool result)
        {
            if(num1 % 3 == 0)
            {
                Console.WriteLine(num1);
                result =true;
            }
            else
            {
                Console.WriteLine(num1);
                result =false;
            }
        }

  
    }
}
